const KEY = 'token'

// 保存 token
export const setToken = data => {
  localStorage.setItem(KEY, data)
}

// 获取 token
export const getToken = () => {
  return localStorage.getItem(KEY)
}

export const removeToken = () => {
  localStorage.removeItem(KEY)
}
